package com.zhou.system.management.model.ao;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author xianfeng
 * @date 2023/5/22 23:01
 */
@Data
public class SysDeptAddAo {


    @NotNull
    @ApiModelProperty(value = "父部门id", position = 2)
    @JsonProperty(index = 2)
    private Long parentId;

    @NotEmpty
    @ApiModelProperty(value = "部门名称", position = 4)
    @JsonProperty(index = 4)
    private String deptName;

    @ApiModelProperty(value = "显示顺序", position = 5)
    @JsonProperty(index = 5)
    private Integer orderNum;

    @ApiModelProperty(value = "类型;0部门，1分公司，2地区", position = 6)
    @JsonProperty(index = 6)
    private Integer type;

    @ApiModelProperty(value = "部门状态;（0正常,1停用）", position = 7)
    @JsonProperty(index = 7)
    private Integer status;
}
